PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Coercions

Coercions are described in detail in Coercing Values.

Figure A-1 summarizes the coercions that AppleScript supports for commonly-used value classes. To use the figure, find the class of the value to be coerced in the column at the left. Search across the table to the column labeled with the class to which you want to coerce the value. If there is a square at the intersection, then AppleScript supports the coercion.

Three of the identifiers mentioned at the top of Figure A-1 act only as synonyms for other value classes: "Number" is a synonym for either "Integer" or "Real," "Text" is a synonym for "String," and "Styled Text" is a synonym for a string that contains style and font information. You can coerce values using these synonyms, but the class of the resulting value is always the appropriate value class, not the synonym.

Figure A-1   Coercions supported by AppleScript


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)